/*  -*- mode: c++; coding: utf-8; c-file-style: "stroustrup"; -*-

    Copyright 2008 Asier Aguirre <asier.aguirre@gmail.com>
    This file is part of Intromit.

    Intromit is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Intromit is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Intromit.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef RENDER_OBJ_WIDGET_LABEL_HH
#define RENDER_OBJ_WIDGET_LABEL_HH
//! \addtogroup introsight_framework
//@{

// INCLUDES
#include "render_obj_widget.hh"

class render_obj_widget_label: public render_obj_widget
{
    // PRIVATE METHODS
    void ctor();
    void dtor();

    // label info
    char *text;

    // render functions
    void render_label(render_mng *ctx);

public:
    render_obj_widget_label();
    virtual ~render_obj_widget_label();

    virtual bool init(render_mng *ctx);
    virtual void render(render_mng *ctx);
    virtual bool event(render_mng *ctx);
    virtual unsigned get_type();           // returns IS_TYPE_*
};

//@}
#endif

/* Offline metadata attributes:

   @metadata_attrs(
	render_obj_widget_label
	{
		# methods
		init, render:
						select
	}
   )
*/
